import stroes from '../../stores/system';
import { Button } from 'antd';
import { FC, forwardRef, useEffect, type RefObject } from 'react';

const SetSpeed: FC = () => {
    return (
        <div>
            <p>操作：</p>
            <Button
                onClick={() => {
                    // curStores.status.speed++;
                    stroes.status.setSpeed(1);
                }}
            >
                speed+1
            </Button>
            <Button
                onClick={() => {
                    stroes.status.setSpeed(-1);
                }}
            >
                speed-1
            </Button>
            <Button
                onClick={async () => {
                    await stroes.status.setSyncSpeed(2);
                }}
            >
                speedSync+2
            </Button>
        </div>
    );
};
export default SetSpeed;
